<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="com.cys.bean.WaterMixeC,com.cys.dao.WaterMixeCDao"%>
<%
	request.setCharacterEncoding("UTF-8");
	String dev_watermix_controlor = request.getParameter("wm_no");
	String cmd = request.getParameter("wme_cmd");

	WaterMixeC waterMixeC = new WaterMixeC();

	if (dev_watermix_controlor != null && !dev_watermix_controlor.equals(""))
		waterMixeC.setDev_watermix_controlor(Integer.parseInt(dev_watermix_controlor));
	if (cmd != null && !cmd.equals(""))
		waterMixeC.setCmd(Integer.parseInt(cmd));

	boolean res = WaterMixeCDao.getInstance().WaterMixeCCmd(waterMixeC);
	if (res) {
		System.out.println("添加成功");
		request.getRequestDispatcher("Control.jsp").forward(request, response);

	} else {
		System.out.println("添加是吧");
		response.sendRedirect("Control.jsp");
	}
%>